package com.xnyzc.lhy.common.penum;


import com.xnyzc.lhy.common.entity.PEnum;

/**
 * 服务半径限定枚举
 *
 * @Author: Long
 * @Date: 2019/1/4 14:32
 */
public enum ERadiusLimit implements PEnum<String> {
    cServAddr("客户", 5.0d), fm("管家", 10d), busiMerchant("商家", 2d), serverMerchant("服务商", 10d), activity("活动", 5d), transferFm("订单转移搜索范围", 50d);

    private String desc;
    private double maxRadius;

    ERadiusLimit(String desc, double maxRadius) {
        this.desc = desc;
        this.maxRadius = maxRadius;
    }

    /**
     * 获取最大范围
     *
     * @return
     */
    public double getMaxRadius() {
        return maxRadius;
    }

    @Override
    public String getValue() {
        return name();
    }

    @Override
    public String toString() {
        return name();
    }

    @Override
    public String toChString() {
        return Double.toString(maxRadius);
    }
}
